﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Runtime.CompilerServices;
using System.Text;
using System.Threading.Tasks;
using UserControlLib.Enums;

namespace UserControlLib.Models
{
    public class LogIteamModel : INotifyPropertyChanged
    {
        /// <summary>
        /// 日志内容
        /// </summary>
        private string _logMsg;
        /// <summary>
        /// 日志类型
        /// </summary>
        private LogType _logTyp;
        public string LogMsg
        {
            get { return _logMsg; }
            set
            {
                this._logMsg = value;
                OnPropertyChanged();
            }
        }

        public LogType LogTyp
        {
            get { return _logTyp; }
            set
            {
                this._logTyp = value;
                OnPropertyChanged();
            }
        }

        public event PropertyChangedEventHandler PropertyChanged;

        protected void OnPropertyChanged([CallerMemberName] string propertyName = null)
        {
            PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
        }
    }
}
